package com.bonc.modules.rpt.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bonc.modules.rpt.entity.SuddenEventEntity;
import com.bonc.modules.rpt.param.SuddenEventParam;
import com.bonc.modules.rpt.result.SurveyResult;

import java.util.List;

/**
 * @author jinlong
 * @date 2021/8/4
 */
public interface SuddenEventService extends IService<SuddenEventEntity> {

    /**
     * 获取报表分页数据
     *
     * @param suddenEventParam 突发事件报表参数
     * @return
     */
    Page<SuddenEventEntity> page(SuddenEventParam suddenEventParam);

    /**
     * 获取报表数据
     *
     * @param suddenEventParam 突发事件报表参数
     * @return
     */
    List<SuddenEventEntity> list(SuddenEventParam suddenEventParam);


    int delete(SuddenEventParam suddenEventParam);

    SurveyResult suddenEventStat(String date);
}
